<template>
  <div>
  <MyTable :list="list">
    <template #biaotou> 
      <tr>
        <th>序号</th>
        <th>商品名称</th>
        <th>价格</th>
        <th>标签</th>
        <th>操作</th>
      </tr>
    </template>
    
  </MyTable>
  </div>
</template>

<script>
import MyTable from "../components/MyTable.vue"
import axios from '../utils/request.js'
export default {
  data(){
    return{
      list:[],
    }
  },
  components:{
    MyTable
  },
  created(){
    axios({
      url:"/api/goods"
    }).then(res=>{
      this.list=res.data.data
      console.log(res)
    }).catch(res=>console.log(res))
  }
}
</script>

<style>

</style>